package com.prs.crm.service.sys.impl;

import java.io.Serializable;
import java.util.List;

import com.prs.crm.dao.sys.CodeInvoiceDao;
import com.prs.crm.domain.sys.CodeInvoice;
import com.prs.crm.service.impl.BaseServiceImpl;
import com.prs.crm.service.sys.CodeInvoiceService;

public class CodeInvoiceServiceImpl extends
		BaseServiceImpl<CodeInvoice, CodeInvoiceDao> implements
		CodeInvoiceService {

	@Override
	public int getInvoiceCodeName(String name) {

		return this.getDao().getInvoiceCodeName(name);
	}

	@Override
	public List<CodeInvoice> getInvoiceCodeType(String type) {

		return this.getDao().getInvoiceCodeType(type);
	}

	@Override
	public CodeInvoice getVobject(Serializable id) {
		// TODO Auto-generated method stub
		return this.getDao().getVobject(id);
	}

	@Override
	public void saveOrUpdate(CodeInvoice codeInvoice) {
		
		this.getDao().saveOrUpdate(codeInvoice);
	}

}
